from flask import Flask,render_template

app = Flask(__name__)

#路由地址
@app.route('/')
def index():
    return render_template('index02.html',name='张三')

@app.route('/index/')
def index2():
    return render_template('index02.html',name='张三',age=18)

context = {
    'uname':'吕布',
    'uage':18,
}
@app.route('/home/')
def home():
    return render_template('index02.html',**context)

if __name__ == '__main__':
    #启动web应用服务
    app.run(debug=True)